//index.js
//获取应用实例
var app = getApp()
Page({
    data: {
        indicatorDots: true,
        imgUrls: [
            '../img/lb1.jpg',
            '../img/lb1.jpg',
            '../img/lb1.jpg'
        ],
        items:[
          {
            icon:'icon-hunshasheying',
            content:'婚纱摄影'
          }, {
            icon: 'icon-hunlicehua',
            content: '婚纱策划'
          }, {
            icon: 'icon-hunshalifu',
            content: '婚纱礼服'
          }, {
            icon: 'icon-miyuehaidao',
            content: '蜜月之旅'
          }, {
            icon: 'icon-xianhuasudi',
            content: '鲜花配送'
          }, {
            icon: 'icon-xianshihuodong',
            content: '限时特惠'
          }
        ],
        duration: 500,
        interval: 5000
    },
    //事件处理函数
    bindViewTap: function() {
        wx.navigateTo({
            url: '../logs/logs'
        })
    },
    onLoad: function() {
        console.log('onLoad')
        var that = this
            //调用应用实例的方法获取全局数据
        app.getUserInfo(function(userInfo) {
            //更新数据
            that.setData({
                userInfo: userInfo
            })
        })
    },
    weddingPhoto(){
      wx.navigateTo({
        url: 'weddingPhoto/weddingPhoto',
      })
    },
    weddingPlanning(){
      wx.navigateTo({
        url: 'weddingPlanning/weddingPlanning',
      })
    },
    weddingDress(){
      wx.navigateTo({
        url: 'weddingDress/weddingDress',

      })
    },
    honeymoonTrip(){
      wx.navigateTo({
        url: 'honeymoonTrip/honeymoonTrip',
      })
    },
    flowerDelivery(){
      wx.navigateTo({
        url: 'flowerDelivery/flowerDelivery',
      })
    },
    dailyAttendance(){
      wx.navigateTo({
        url: 'dailyAttendance/dailyAttendance',
      })
    },
    integralMall(){
      wx.navigateTo({
        url: 'integralMall/integralMall',
      })
    },
    limitedIndulgence(){
      wx.navigateTo({
        url: 'limitedIndulgence/limitedIndulgence',
      })
    },
    packageDetails(){
      wx.navigateTo({
        url: 'highQualityGoodsPackage/packageDetails/packageDetails',
      })
    },
    assortment(e){
      // console.log(e)
      wx.navigateTo({
        url: 'assortment/assortment?content='+e.currentTarget.dataset.content,
      })
    }
})